package com.dkcrow.lock;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.dkcrow.lock.service.impl.UserServiceImpl;

/**
 * Hello world!
 *
 */
public class SpringTransactionApp
{
	final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	public static ApplicationContext ap;
	
    public static void main( String[] args )
    {
    	ap = new ClassPathXmlApplicationContext("/spring/jdbc-context.xml");
    	UserServiceImpl userServiceImpl = (UserServiceImpl) ap.getBean("userServiceImpl");
    	userServiceImpl.deleteAllUser();
    	userServiceImpl.excute();
    }
}